package otherapi.fastjson;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.springframework.util.ObjectUtils;

/**
 * @author LiDong
 * @version 1.0.0
 * @createTime 9/29/2022 5:55 PM
 */
public class UserTest {

    // private String username;

    // @JsonProperty(value = "username")
    @JSONField(name = "username")
    private String userName;

    // public String getUsername() {
    //     return username;
    // }
    //
    // public void setUsername(String username) {
    //     this.username = username;
    //     if(ObjectUtils.isEmpty(userName)){
    //         this.userName = username;
    //     }
    // }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    // @Override
    // public String toString() {
    //     return "UserTest{" +
    //             "username='" + username + '\'' +
    //             ", userName='" + userName + '\'' +
    //             '}';
    // }
}
